/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    line-height: 1.6;
    background: #0a0a0a;
    min-height: 100vh;
    padding: 20px;
    color: #00ff00;
    overflow-x: hidden;
    position: relative;
}

/* 黑客背景效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 255, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 0, 0.02) 0%, transparent 50%),
        linear-gradient(45deg, transparent 49%, rgba(0, 255, 0, 0.02) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(0, 255, 0, 0.02) 50%, transparent 51%);
    background-size: 100% 100%, 100% 100%, 30px 30px, 30px 30px;
    pointer-events: none;
    z-index: -1;
}

/* 扫描线效果 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 50%,
            rgba(0, 255, 0, 0.03) 51%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: -1;
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding: 20px;
    border: 1px solid #00ff00;
    background: rgba(0, 20, 0, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.2);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
    }

    to {
        box-shadow: 0 0 40px rgba(0, 255, 0, 0.4);
    }
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #00ff00;
    color: #00ff00;
    letter-spacing: 2px;
}

.header p {
    font-size: 1.1rem;
    color: #00ff00;
    opacity: 0.8;
}

/* 卡片样式 */
.card {
    background: rgba(0, 10, 0, 0.6);
    border: 1px solid #00ff00;
    border-radius: 0;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
    transform: translateY(-2px);
}

.card h2 {
    color: #00ff00;
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-bottom: 1px solid #00ff00;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 5px #00ff00;
}

.card h2::before {
    content: ">";
    font-size: 1.2rem;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* 子域名显示 */
.subdomain-container {
    background: rgba(0, 20, 0, 0.4);
    border: 1px solid #00ff00;
    border-radius: 0;
    padding: 20px;
    margin: 15px 0;
    text-align: center;
    position: relative;
}

/* 紧凑子域名布局 */
.subdomain-row {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: space-between;
    margin: 15px 0;
}

.subdomain-compact {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: #00ff00;
    word-break: break-all;
    background: rgba(0, 10, 0, 0.8);
    padding: 12px 20px;
    border-radius: 0;
    border: 1px solid #00ff00;
    flex: 1;
    min-width: 0;
    max-width: 70%;
    text-shadow: 0 0 5px #00ff00;
    position: relative;
}

.button-group-compact {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-compact {
    padding: 10px 16px !important;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    font-size: 14px;
    white-space: nowrap;
    min-width: 80px;
    transition: all 0.3s ease;
}

.btn-compact span {
    font-size: 1rem;
    margin-right: 6px !important;
}

/* 按钮样式 */
.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.btn {
    background: rgba(0, 20, 0, 0.6);
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 12px 24px;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.4);
    background: rgba(0, 30, 0, 0.8);
}

.btn-secondary {
    background: rgba(20, 20, 0, 0.6);
    border-color: #ffff00;
    color: #ffff00;
}

.btn-secondary:hover {
    box-shadow: 0 5px 15px rgba(255, 255, 0, 0.4);
    background: rgba(30, 30, 0, 0.8);
}

.btn-success {
    background: rgba(0, 20, 0, 0.6);
    border-color: #00ff00;
    color: #00ff00;
}

.btn-success:hover {
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.4);
    background: rgba(0, 30, 0, 0.8);
}

.btn-danger {
    background: rgba(20, 0, 0, 0.6);
    border-color: #ff0000;
    color: #ff0000;
}

.btn-danger:hover {
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
    background: rgba(30, 0, 0, 0.8);
}

/* 紧凑按钮悬停效果 */
.btn-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.3);
}

/* 命令样式 */
.commands {
    background: rgba(0, 10, 0, 0.4);
    border-radius: 0;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #00ff00;
}

.command-section {
    margin-bottom: 25px;
}

.command-section h4 {
    color: #00ff00;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    text-shadow: 0 0 5px #00ff00;
}

.command-item {
    background: rgba(0, 20, 0, 0.6);
    color: #00ff00;
    padding: 12px 15px;
    border-radius: 0;
    margin: 8px 0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    border-left: 4px solid #00ff00;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.command-item::before {
    content: '$';
    margin-right: 8px;
    color: #00ff00;
    opacity: 0.7;
}

.command-item:hover {
    background: rgba(0, 30, 0, 0.8);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.2);
}

.command-item:hover .copy-btn {
    opacity: 1;
    transform: translateX(0);
}

.command-text {
    flex: 1;
    padding-right: 10px;
    text-shadow: 0 0 3px #00ff00;
}

.copy-btn {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 6px 12px;
    border-radius: 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0.8;
    transform: translateX(10px);
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 60px;
    justify-content: center;
    font-family: 'Courier New', monospace;
}

.copy-btn:hover {
    background: rgba(0, 255, 0, 0.4);
    transform: scale(1.05);
}

.copy-btn.copied {
    background: rgba(0, 255, 0, 0.6);
    min-width: 70px;
}

.copy-btn.copied::before {
    content: "[OK]";
}

.command-hint {
    font-size: 12px;
    color: #00ff00;
    margin-top: 8px;
    padding: 8px;
    background: rgba(0, 20, 0, 0.4);
    border-radius: 0;
    border-left: 3px solid #00ff00;
    opacity: 0.8;
}

/* 命令类型标识 */
.command-item.dns {
    border-left-color: #00ffff;
}

.command-item.http {
    border-left-color: #ffff00;
}

.command-item.quick {
    border-left-color: #00ff00;
}

.command-item.dns .copy-btn {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
}

.command-item.http .copy-btn {
    background: rgba(255, 255, 0, 0.2);
    border-color: #ffff00;
}

.command-item.quick .copy-btn {
    background: rgba(0, 255, 0, 0.2);
    border-color: #00ff00;
}

/* 记录表格样式 */
.records-container {
    margin-top: 20px;
}

.records-header {
    display: grid;
    grid-template-columns: 180px 80px 150px 1fr;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 20, 0, 0.8);
    color: #00ff00;
    border: 1px solid #00ff00;
    font-weight: 600;
    text-shadow: 0 0 5px #00ff00;
}

.record-item {
    display: grid;
    grid-template-columns: 180px 80px 150px 1fr;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #00ff00;
    transition: background 0.3s ease;
    align-items: center;
    background: rgba(0, 10, 0, 0.4);
}

.record-item:hover {
    background: rgba(0, 30, 0, 0.6);
    transform: translateX(5px);
}

.record-item:last-child {
    border-bottom: 1px solid #00ff00;
}

.record-time {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    opacity: 0.9;
}

.record-type {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    padding: 4px 8px;
    border-radius: 0;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    border: 1px solid #00ff00;
}

.record-ip {
    color: #ff4444;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    text-shadow: 0 0 3px #ff4444;
}

.record-domain {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    text-shadow: 0 0 3px #00ff00;
}

.no-records {
    text-align: center;
    padding: 40px;
    color: #00ff00;
    font-style: italic;
    opacity: 0.7;
}

/* 状态指示器 */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 20, 0, 0.6);
    border-radius: 0;
    font-size: 14px;
    margin-bottom: 10px;
    border: 1px solid #00ff00;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00ff00;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px #00ff00;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

/* 复制按钮状态样式 */
.copy-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.copy-btn.copied {
    background: rgba(0, 255, 0, 0.6) !important;
}

/* 平台特定提示样式 */
.platform-tips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 15px 0;
}

.platform-tip {
    background: rgba(0, 10, 0, 0.4);
    border-radius: 0;
    padding: 15px;
    border: 1px solid;
}

.platform-tip.windows {
    border-color: #0078d4;
    background: rgba(0, 40, 80, 0.3);
}

.platform-tip.linux {
    border-color: #1793d1;
    background: rgba(0, 40, 40, 0.3);
}

.platform-tip h5 {
    color: #00ff00;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    border-bottom: 1px solid;
    padding-bottom: 8px;
}

.platform-tip.windows h5 {
    border-color: #0078d4;
}

.platform-tip.linux h5 {
    border-color: #1793d1;
}

/* 方法分组样式 */
.method-group {
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
    border-left: 3px solid #0078d4;
}

.method-group h6 {
    color: #00ff00;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(0, 120, 212, 0.3);
    padding-bottom: 6px;
}

/* 黑客特效类 */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
}

/* 点击波纹效果 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 255, 0, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 打字机效果 */
.typewriter {
    overflow: hidden;
    border-right: 2px solid #00ff00;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: #00ff00
    }
}

/* 二进制背景动画 */
.binary-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    opacity: 0.03;
}

.binary-digit {
    position: absolute;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .records-header,
    .record-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .record-type {
        justify-self: start;
    }

    .subdomain {
        font-size: 1rem;
    }

    .command-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .command-text {
        padding-right: 0;
    }

    .copy-btn {
        transform: none;
        opacity: 1;
        align-self: flex-end;
    }

    .subdomain-row {
        flex-direction: column;
        gap: 10px;
    }

    .subdomain-compact {
        max-width: 100%;
        font-size: 1rem;
        padding: 10px 15px;
    }

    .button-group-compact {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn-compact {
        min-width: 100px;
        padding: 12px 20px !important;
    }

    .platform-tips {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 255, 0, 0.3);
    border-top: 3px solid #00ff00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: rgba(0, 20, 0, 0.95);
    color: #00ff00;
    border: 1px solid #00ff00;
    border-radius: 0;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    transform: translateX(400px);
    transition: all 0.3s ease;
    z-index: 10000;
    font-family: 'Courier New', monospace;
    max-width: 400px;
    word-break: break-word;
    opacity: 0;
    visibility: hidden;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.notification.error {
    background: rgba(20, 0, 0, 0.95);
    border-color: #ff0000;
    color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

/* 确保通知框在所有内容之上 */
.notification {
    z-index: 10000 !important;
}

/* 终端光标效果 */
.terminal-cursor {
    animation: blink 1s infinite;
}

/* 黑客文字闪烁效果 */
.hacker-text {
    text-shadow: 0 0 5px currentColor;
    animation: text-flicker 3s infinite alternate;
}

@keyframes text-flicker {

    0%,
    19.999%,
    22%,
    62.999%,
    64%,
    64.999%,
    72%,
    100% {
        opacity: 1;
    }

    20%,
    21.999%,
    63%,
    63.999%,
    65%,
    71.999% {
        opacity: 0.4;
    }
}